<template>
  
  <yd-layout>
    <yd-navbar slot="navbar" title="选择门店">
      <a slot="left"  @click.prevent="$router.go(-1)" href="javascript:;">
        <yd-navbar-back-icon></yd-navbar-back-icon>
      </a>
    </yd-navbar>
    <div>
      <div class="select-nav">
        <yd-icon @click.native.stop="handleSelectCity" name="location" size="0.54rem"></yd-icon>
      </div>
      <city-select v-model="showCitySelect" />
    </div>
  </yd-layout>
  
</template>

<script>
import pageMixin from "../../mixins/page";
import citySelect from "../../components/city-select";
export default {
  mixins: [pageMixin],
  components: { citySelect },
  data() {
    return {
      showCitySelect: false,
    };
  },
  methods: {
    handleSelectCity() {
      this.showCitySelect = true;
    },
  },
  beforeRouteLeave(to ,from, next){
    
    next()
  }
};
</script>

<style>

</style>
